//package com.groupbuying.payproducer.orderpay.controller;
//
//import com.groupbuying.payproducer.orderpay.service.OrderPayService;
//import com.groupbuying.payproducer.orderpay.service.WeiXinPayService;
//import com.groupbuying.payproducer.orderpay.utils.Result;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//
///**
// * @Author gxy
// * @Description 微信支付相关接口
// * @Date 2019/1/23 17:19
// **/
//@RestController
//@RequestMapping("/weiXinPay")
//public class WeiXinPayController {
//
//    @Autowired
//    private OrderPayService orderPayService;
//    @Autowired
//    private WeiXinPayService weiXinPayService;
//    public static final Logger LOGGER = LoggerFactory.getLogger(WeiXinPayController.class);
//    @RequestMapping(value = "/wechatPaymentCallback", method = RequestMethod.POST)
//    public Result wechatPaymentCallback(HttpServletRequest request, HttpServletResponse response){
//
//        try {
//            String respString = weiXinPayService.wechatPaymentCallback(request);
//            response.setCharacterEncoding("utf-8");
//            response.getWriter().write(respString);
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
//
//
//        return null;
//    }
//
//}
